<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/pages/common/head.jsp"%>

<div>
	<ul class="breadcrumb">
		<li><a href="#">后台管理</a> <span class="divider">/</span></li>
		<li><a href="/backend/authoritymanage.html">权限管理</a></li>
	</ul>
</div>
<div class="row-fluid sortable">		
	<div class="box span12">
		<div class="box-header well" data-original-title>
			<h2><i class="icon-user"></i> 权限管理 </h2>
		</div>		
		<div class="box-content">
			<table class="table table-striped table-bordered bootstrap-datatable datatable">
			  <tbody>
			  <tr>
			  <td width="200px;">
			  <ul class="rolelistul">
			  <c:forEach items="${roleList}" var="role">
			  	<li>
			  		<a class="roleNameAuthority" rolename="${role.roleName}" roleid="${role.id}">${role.roleName}</a>
			  	</li>
			  </c:forEach>
			  </ul>
			  </td>
			  <td>
			  <h3 id="selectrole"></h3>
			  <input type="hidden" id="roleidhide" value=""/>
			    <p class="btn-group">
			    	<button class="btn btn-large btn-primary" id="selectAll">全选</button>
				  	<button class="btn btn-large btn-primary" id="unSelect">全不选</button>
				  	<button class="btn btn-large btn-primary" id="reverse">反选</button>
				 </p>
			  	<ul id="functionList"></ul>
			  	<div class="clear"></div>
			  	<p class="center">
					<a id="confirmsave" class="btn btn-large btn-primary"><i class="icon-chevron-left icon-white"></i> 确定赋予权限</a> 
				</p>
			  </td>
			  <tr>
			  </tbody>
		  </table>   
	</div>
</div><!--/span-->
</div><!--/row-->
<%@include file="/WEB-INF/pages/common/foot.jsp"%>
<script type="text/javascript" src="/statics/localjs/authoritymanage.js"></script>